package org.boot.ssm.wxshop.web.controller;

import org.boot.ssm.wxshop.domain.Collections;
import org.boot.ssm.wxshop.service.CollectionService;
import org.boot.ssm.wxshop.web.common.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: wxshop
 * @description: 评论控制器
 * @author: 刘涛
 * @create: 2018-03-23 17:18
 **/
@Controller
@RequestMapping(value = "/collection")
public class CollectionController {

    @Autowired
    private CollectionService collectionService;


    /**
     * 用户点击收藏按钮
     * @param collections
     * @return
     */
    @RequestMapping(value = "/frontstage/userCollection")
    @ResponseBody
    public JsonResult userCollection(Collections collections){
        return collectionService.userCollection(collections);
    }



}
